package jp.tkym.labs.store;


import java.util.List;

import jp.tkym.labs.store.api.Entity;
import jp.tkym.labs.store.api.Indexed;
import jp.tkym.labs.store.api.Key;
import jp.tkym.labs.store.api.Parent;

@Entity
@Parent(Person.class)
public class PersonByoumei {
	private String key;
	private String displayName;
	private List<Integer> code;
	@Key
	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		this.key = key;
	}
	@Indexed
	public String getDisplayName() {
		return displayName;
	}
	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}
	public int getCode(int index) {
		return code.get(index);
	}
	public void addCode(int code) {
		this.code.add(code);
	}
	public void removeCode(int code) {
		this.code.remove(code);
	}
}
